package com.cheems.springbootinit.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName(value = "chapter")
public class Chapter implements Serializable {
    @TableId(type = IdType.AUTO)
    private Long id;
    
    @TableField("course_id")
    private Long courseId;
    
    private String title;
    
    private String content;

    private String duration;

    @TableField("order_num")
    private Integer orderNum;
    
    @TableField("created_at")
    private Date createTime;
    
    @TableField("updated_at")
    private Date updateTime;
    
    @TableLogic
    @TableField("is_delete")
    private Integer isDelete;
    
    private static final long serialVersionUID = 1L;
} 